import request from '@/utils/request'

// 查询职称证书信息列表
export function listProfessionalTitle(query) {
  return request({
    url: '/profession/professionalTitle/list',
    method: 'get',
    params: query
  })
}

// 查询职称证书信息详细
export function getProfessionalTitle(id) {
  return request({
    url: '/profession/professionalTitle/' + id,
    method: 'get'
  })
}

// 新增职称证书信息
export function addProfessionalTitle(data) {
  return request({
    url: '/profession/professionalTitle',
    method: 'post',
    data: data
  })
}

// 修改职称证书信息
export function updateProfessionalTitle(data) {
  return request({
    url: '/profession/professionalTitle',
    method: 'put',
    data: data
  })
}

// 删除职称证书信息
export function delProfessionalTitle(id) {
  return request({
    url: '/profession/professionalTitle/' + id,
    method: 'delete'
  })
}
